// 检查登录状态
export const checkLogin = () => {
  const isGuideCompleted = uni.getStorageSync('guide_completed');
  const isLoggedIn = uni.getStorageSync('userInfo');
  
  if (!isGuideCompleted) {
    uni.redirectTo({
      url: '/pages/guide'
    });
    return false;
  }
  
  if (!isLoggedIn) {
    uni.redirectTo({
      url: '/pages/other/login'
    });
    return false;
  }
  
  return true;
}; 